package com.yj.springbootcommon.common;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    TestA testA;

    @Autowired
    TestB testB;

    @GetMapping("/testA")
    public String testA(){

        return testA.printA();
    }

    @GetMapping("/testB")
    public String testB(){

        return testB.printB();
    }


}
